package com.zoo.boot.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 *  菜单的 数据显示 ，必须遵循前端 数据定义的标准
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MenuIndexDto {

    @ApiModelProperty("菜单主键")
    private Integer id;

    @ApiModelProperty("菜单父id")
    private Integer parentId;

    @ApiModelProperty("菜单名称")
    private String title;

    @ApiModelProperty("图标名称")
    private String icon;

    private Integer type;

    @ApiModelProperty("菜单访问路径")
    private String href;

    private String permission;

    @ApiModelProperty("排序")
    private Integer sort;

    private Date createTime;

    private Date updateTime;

    private List<MenuIndexDto> children;
}
